import {createRouter, createWebHistory} from 'vue-router';
import HelloWorld from '../components/HelloWorld.vue'
import dialogue from '../components/dialogue.vue';
import topiclist from '../components/topiclist.vue';
import parameter from '../components/parameter.vue';
import echarts1 from '../components/echarts1.vue';
import askAnswer from '../components/askAnswer.vue';
import scrollbar from '../components/scrollbar.vue';
import SSE from '../components/Sse.vue';
import markdown from '../components/Markdown.vue'
// import markdown from '../components/Markdown-origin.vue'
import Vhtml from '../components/Vhtml.vue'
import Audio from '../components/VoiceRecognition.vue'
import Recorder from "../components/Recorder.vue";
import BootstrapTest from "../components/BootstrapTest.vue";
import RouteKeep from "../components/RouteKeep.vue";
import Other from "../components/Other.vue";
import TableHeader from "../components/TableHeader.vue";
import dynamicTable from "../components/dynamicTable.vue";
import fileSelect from "../components/fileSelect.vue";
import collapse from "../components/collapse.vue";
import multiDiv from "../components/multiDiv.vue";
import webSocket from "../components/web-socket.vue";
import LiquidFillChart from "../components/LiquidFillChart.vue";
import InputNumber from "../components/InputNumber.vue";
const router = createRouter({
    history: createWebHistory(),
    routes: [
        {path: '/', component: HelloWorld},
        {path: '/dialogue', component: dialogue},
        {path: '/topiclist', component: topiclist},
        {path: '/parameter', component: parameter},
        {path: '/echarts1', component: echarts1},
        {path: '/askAnswer', component: askAnswer},
        {path: '/scrollbar', component: scrollbar},
        {path: '/SSE', component: SSE},
        {path: '/markdown', component: markdown},
        {path: '/Vhtml', component: Vhtml},
        {path: '/Audio', component: Audio},
        {path: '/Recorder', component: Recorder},
        {path: '/BootstrapTest', component: BootstrapTest},
        {path: '/RouteKeep', component: RouteKeep, name:"RouteKeep", children:[
            {
                path: "/other",
                name: "Other",
                component: Other,
              }
              
        ]},
        {path: '/TableHeader', component: TableHeader},
        {path: '/dynamicTable', component: dynamicTable},
        {path: '/fileSelect', component: fileSelect},
        {path: '/collapse', component: collapse},
        {path: '/multiDiv', component: multiDiv},
        {path: '/webSocket', component: webSocket},
        {path: '/liquidfill', component: LiquidFillChart},
        {path: '/InputNumber', component: InputNumber},
    ],
});



export default router;